import type {SVGIconProps} from './svgIcon';
import {SvgIcon} from './svgIcon';

interface Props extends SVGIconProps {
  isSolid?: boolean;
}

export function IconPin({isSolid = false, ...props}: Props) {
  return (
    <SvgIcon {...props}>
      {isSolid ? (
        <path d="M11.13 0.31C11.5 0.02 12.02 0.03 12.38 0.32L12.45 0.39L15.61 3.55C15.99 3.93 16 4.55 15.62 4.94L11.05 9.75C11.01 9.79 10.98 9.85 10.98 9.91L10.75 14.04C10.73 14.34 10.54 14.59 10.27 14.7C9.99 14.81 9.68 14.74 9.47 14.53L6 11.06L2.28 14.78C1.99 15.07 1.51 15.07 1.22 14.78C0.93 14.49 0.93 14.01 1.22 13.72L4.94 10L1.47 6.53C1.26 6.32 1.19 6.01 1.3 5.73C1.4 5.46 1.66 5.27 1.96 5.25L6.09 5.02C6.15 5.02 6.21 4.99 6.25 4.95L11.06 0.37L11.13 0.31Z" />
      ) : (
        <path d="M11.13 0.31C11.5 0.02 12.02 0.03 12.38 0.32L12.45 0.39L15.61 3.55C15.99 3.93 16 4.55 15.63 4.94L11.05 9.75C11.01 9.79 10.98 9.85 10.98 9.91L10.75 14.04C10.73 14.34 10.54 14.59 10.27 14.7C9.99 14.81 9.68 14.74 9.47 14.53L6 11.06L2.28 14.78C1.99 15.07 1.51 15.07 1.22 14.78C0.93 14.49 0.93 14.01 1.22 13.72L4.94 10L1.47 6.53C1.26 6.32 1.19 6.01 1.3 5.73C1.41 5.46 1.66 5.27 1.96 5.25L6.09 5.02C6.15 5.02 6.21 4.99 6.25 4.95L11.06 0.38L11.13 0.31ZM7.28 6.04C6.98 6.33 6.59 6.5 6.17 6.52L3.72 6.66L9.34 12.28L9.48 9.83C9.5 9.41 9.67 9.02 9.96 8.72L14.2 4.26L11.74 1.8L7.28 6.04Z" />
      )}
    </SvgIcon>
  );
}
